package com.tydic.borderer.domain.bo;

import com.tydic.common.core.validate.AddGroup;
import com.tydic.common.core.validate.EditGroup;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

@Data
public class MutualHelpOrganizationMemberBo implements Serializable {
    @Serial
    private static final long serialVersionUID = -343115597167214069L;
    /**
     * 姓名
     */
    @NotBlank(message = "姓名不能为空", groups = {AddGroup.class, EditGroup.class})
    private String name;

    /**
     * 身份证号码
     */
    @NotBlank(message = "身份证号码不能为空", groups = {AddGroup.class, EditGroup.class})
    private String idCardNumber;

    /**
     * 手机号码
     */
    @NotBlank(message = "手机号码不能为空", groups = {AddGroup.class, EditGroup.class})
    private String mobile;

    /**
     * 户籍地址
     */
    @NotBlank(message = "户籍地址不能为空", groups = {AddGroup.class, EditGroup.class})
    private String householdRegistration;

    /**
     * 发证机关
     */
    @NotBlank(message = "发证机关不能为空", groups = {AddGroup.class, EditGroup.class})
    private String licenseIssueAuthority;

    /**
     * 证件有效期起
     */
    @NotBlank(message = "证件有效期起不能为空", groups = {AddGroup.class, EditGroup.class})
    private String certificateStartTime;

    /**
     * 证件有效期止
     */
    @NotBlank(message = "证件有效期止不能为空", groups = {AddGroup.class, EditGroup.class})
    private String certificateEndTime;
}
